﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity
{
    public enum ServiceType
    {
        POP = 1,
        IMAP = 2,
        SMTP = 3,
        EWS = 4,
    }

    public class UserAccount
    {
        int _userID;

        public int UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }//用户ID

        string _userName;

        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        string _UserPassword;

        public string UserPassword
        {
            get { return _UserPassword; }
            set { _UserPassword = value; }
        }

        int _mailAccountID;//用户中的账户ID

        public int MailAccountID
        {
            get { return _mailAccountID; }
            set { _mailAccountID = value; }
        }

        string _mailAddress;

        public string MailAddress
        {
            get { return _mailAddress; }
            set { _mailAddress = value; }
        }

        string _ewsDomain;

        public string EWSDomain
        {
            get { return _ewsDomain; }
            set { _ewsDomain = value; }
        }

        string _mailDisplayName;

        public string MailDisplayName
        {
            get { return _mailDisplayName; }
            set { _mailDisplayName = value; }
        }

        string _mailPassword;

        public string MailPassword
        {
            get { return _mailPassword; }
            set { _mailPassword = value; }
        }

        string _reciveServer;

        public string ReciveServer
        {
            get { return _reciveServer; }
            set { _reciveServer = value; }
        }

        int _reciveServerPort;

        public int ReciveServerPort
        {
            get { return _reciveServerPort; }
            set { _reciveServerPort = value; }
        }
         
        ServiceType _serviceType;

        private string _sendServer;

        public string SendServer
        {
            get { return _sendServer; }
            set { _sendServer = value; }
        }

        private int _sendServerPort;

        public int SendServerPort
        {
            get { return _sendServerPort; }
            set { _sendServerPort = value; }
        }

        public ServiceType ServiceType
        {
            get { return _serviceType; }
            set { _serviceType = value; }
        }

        private bool _isSSL;

        public bool IsSSL
        {
            get { return _isSSL; }
            set { _isSSL = value; }
        }
    }

    public class ContactNameCard
    {
        string _ItemID;

        public string ItemID
        {
            get { return _ItemID; }
            set { _ItemID = value; }
        }

        string _contactName;

        public string ContactName
        {
            get { return _contactName; }
            set { _contactName = value; }
        }

        string _mailAddress;

        public string MailAddress
        {
            get { return _mailAddress; }
            set { _mailAddress = value; }
        }
    }
}
